package com.ars.common.dao;

import com.ars.common.utils.DBUtil;

import java.sql.PreparedStatement;

public class UpdataAdminMysql {
    public static boolean updataAdmin(String a, String id) throws Exception
    {
        String sql = "update user  set isAdmin = ? where userID = ?";
        PreparedStatement ps = DBUtil.getConnection().prepareStatement(sql);
        ps.setString(1, String.valueOf(a));

        ps.setString(2, id);
        return ps.executeUpdate() > 0;
    }
}
